<?php
session_start();
if (isset($_SESSION['signature'])) {
    if (isset($_SESSION['user'])) {
        if ($_SESSION['role'] == "admin") {
            
        }
    } else {
        header("Location: index.php");
    }
} else {
    header("Location: index.php");
}
?>
<!DOCTYPE html>
<html lang="es">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <meta charset="utf-8">
        <title>Agile Gestión</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <!-- favicon FCFCFC -->
        <link rel="shortcut icon" href="static/favicon.ico">
        <!-- Le styles -->
        
        <style type="text/css">
            body {
                padding-top: 40px;
                padding-bottom: 40px;
            }
            
        </style>
        <link href="static/css/bootstrap.css" rel="stylesheet">
        <link rel="stylesheet" href="static/css/bootstrap-responsive.css">
        <link rel="stylesheet" href="static/css/jquery.jqplot.min.css">
        <link rel="stylesheet" href="static/css/custom-theme/jquery-ui-1.10.2.custom.css">

        <!-- Fav and touch icons -->
        <link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://getbootstrap.com/2.3.2/assets/ico/apple-touch-icon-144-precomposed.png">
        <link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://getbootstrap.com/2.3.2/assets/ico/apple-touch-icon-114-precomposed.png">
        <link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://getbootstrap.com/2.3.2/assets/ico/apple-touch-icon-72-precomposed.png">
        <link rel="apple-touch-icon-precomposed" href="http://getbootstrap.com/2.3.2/assets/ico/apple-touch-icon-57-precomposed.png">

        <script data-main="js/main" src="js/libs/require/require.js"></script>
    </head>

    <body>
        <input type="hidden" id="config_company_name" value="<?php echo $_SESSION['company_name']; ?>"/>
        <input type="hidden" id="config_company_ruc" value="<?php echo $_SESSION['company_ruc']; ?>"/>
        <input type="hidden" id="config_company_address" value="<?php echo $_SESSION['company_address']; ?>"/>
        <input type="hidden" id="config_tax" value="<?php echo $_SESSION['tax']; ?>"/>
        <input type="hidden" id="config_current_year" value="<?php echo $_SESSION['current_year']; ?>"/>
        <input type="hidden" id="config_current_month" value="<?php echo $_SESSION['current_month']; ?>"/>
               

        <input type="hidden" id="signature" value="<?php echo $_SESSION['signature']; ?>"/>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="brand" href="#" style="font-weight: bold;font-family:FontAwesome;font-size: 27px;padding-top: 0px; padding-bottom: 0px;"><i class="icon-laptop icon-large"></i>&nbsp;Agile Gestion</a>
                    <div class="nav-collapse collapse">
                        <?php
                        include "static/nav/nav_sin_almacen.html";
                        /*if ($_SESSION['role'] == "admin") {
                            include "static/nav/nav_admin.html";
                        } elseif ($_SESSION['role'] == "user") {
                            include "static/nav/nav_user.html";
                        }*/
                        ?>
                    </div>
                    <!--/.nav-collapse -->
                </div>
            </div>
        </div>
        <div id="wrap">
            <div id="header"></div>
            <!-- Begin page content -->
            <div id="page" class="container">
            </div>
            
        </div>

        <div id="footer">
            <hr>
            <div class="container">
                <p class="muted credit"> <a href="http://www.agilecorp.net/">AgileCorp 2013</a>.</p>
            </div>
        </div>
        <!-- /container -->


    </body>
</html>